Optimal. Leaf size=92 \[ -\frac {\cos (e+f x) \sqrt {a \sin (e+f x)+a} (c-c \sin (e+f x))^{3/2}}{3 c f}-\frac {a \cos (e+f x) (c-c \sin (e+f x))^{3/2}}{3 c f \sqrt {a \sin (e+f x)+a}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.37, antiderivative size = 92, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 38, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.079, Rules used = {2841, 2740, 2738} \[ -\frac {\cos (e+f x) \sqrt {a \sin (e+f x)+a} (c-c \sin (e+f x))^{3/2}}{3 c f}-\frac {a \cos (e+f x) (c-c \sin (e+f x))^{3/2}}{3 c f \sqrt {a \sin (e+f x)+a}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2738
Rule 2740
Rule 2841
Rubi steps
\begin {align*} \int \cos ^2(e+f x) \sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)} \, dx &=\frac {\int (a+a \sin (e+f x))^{3/2} (c-c \sin (e+f x))^{3/2} \, dx}{a c}\\ &=-\frac {\cos (e+f x) \sqrt {a+a \sin (e+f x)} (c-c \sin (e+f x))^{3/2}}{3 c f}+\frac {2 \int \sqrt {a+a \sin (e+f x)} (c-c \sin (e+f x))^{3/2} \, dx}{3 c}\\ &=-\frac {a \cos (e+f x) (c-c \sin (e+f x))^{3/2}}{3 c f \sqrt {a+a \sin (e+f x)}}-\frac {\cos (e+f x) \sqrt {a+a \sin (e+f x)} (c-c \sin (e+f x))^{3/2}}{3 c f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.17, size = 59, normalized size = 0.64 \[ \frac {(9 \sin (e+f x)+\sin (3 (e+f x))) \sec (e+f x) \sqrt {a (\sin (e+f x)+1)} \sqrt {c-c \sin (e+f x)}}{12 f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.42, size = 54, normalized size = 0.59 \[ \frac {{\left (\cos \left (f x + e\right )^{2} + 2\right )} \sqrt {a \sin \left (f x + e\right ) + a} \sqrt {-c \sin \left (f x + e\right ) + c} \sin \left (f x + e\right )}{3 \, f \cos \left (f x + e\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: NotImplementedError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.38, size = 55, normalized size = 0.60 \[ \frac {\left (\cos ^{2}\left (f x +e \right )+2\right ) \sqrt {-c \left (\sin \left (f x +e \right )-1\right )}\, \sin \left (f x +e \right ) \sqrt {a \left (1+\sin \left (f x +e \right )\right )}}{3 f \cos \left (f x +e \right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {a \sin \left (f x + e\right ) + a} \sqrt {-c \sin \left (f x + e\right ) + c} \cos \left (f x + e\right )^{2}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.90, size = 64, normalized size = 0.70 \[ \frac {\left (10\,\sin \left (2\,e+2\,f\,x\right )+\sin \left (4\,e+4\,f\,x\right )\right )\,\sqrt {a\,\left (\sin \left (e+f\,x\right )+1\right )}\,\sqrt {-c\,\left (\sin \left (e+f\,x\right )-1\right )}}{12\,f\,\left (\cos \left (2\,e+2\,f\,x\right )+1\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {a \left (\sin {\left (e + f x \right )} + 1\right )} \sqrt {- c \left (\sin {\left (e + f x \right )} - 1\right )} \cos ^{2}{\left (e + f x \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________